/*
 *  CMap.h
 *  TestRPG
 *
 *  Created by Michael Rhodes on 10-06-08.
 *  Copyright 2010 Tigerstudios Entertainment. All rights reserved.
 *
 */

#ifndef CMAP_H
#define CMAP_H
		
class CTile;

class CMap {
public:
	CMap();
	~CMap();
	
	int RenderMap(void);		// Method to render the map to the screen
	int LoadMap(char *fileName);// Load map file (Text file version)
	
	// method to move the player in a given direction.  If player cannot move due to
	// blocked tile a return code will indicate that.
	int MovePlayer(float x, float y, float speed);
	
private:
	char	*m_mapTitle;		// Title of this map
	int		m_mapWidth;			// Width and height of the map
	int		m_mapHeight;
	
	int		m_totalTiles;		// Total number of tiles in this map
	CTile	*m_pTiles;			// Pointer to the tiles
	
	int		m_totalLayers;		// How many drawing layers are there
	int		*m_pLayer;			// pointer to the layers.  Will be allocated when 
};

#endif



